home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / ODTypesM.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  5.1 KB  |  273 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: ODTypesM.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_Module_OpenDoc_Global_Types_defined
  11. #define SOM_Module_OpenDoc_Global_Types_defined 1
  12. #include <som.h>
  13.  
  14. /*
  15.  * Start of user-defined types:
  16.  */
  17. typedef
  18. DescType ODDescType;
  19. typedef
  20. AESendMode ODSendMode;
  21. typedef
  22. AESendPriority ODSendPriority;
  23. typedef
  24. AEEventClass ODEventClass;
  25. typedef
  26. AEEventID ODEventID;
  27.  
  28. /*
  29.  *  Types added for OSAObject support
  30.  */
  31. typedef
  32. ODULong ODScriptingSubType;
  33. typedef
  34. ODULong ODScriptingConnection;
  35. typedef
  36. ODULong ODOSAID;
  37.  
  38. /*
  39.  *  OS specific types
  40.  * 
  41.  *   The following typedefs are OS specific. They are put together in this file for the
  42.  *   time being. However, they can be put into separate files if desired. For example,
  43.  *   all the primitive types will be put in ODPlatformMisc.h;
  44.  *   all graphics system types will be put in ODPlatformGraphics.h;
  45.  *   all File system types will be put in ODPlatformFiles.h; and so on.
  46.  *   The advantage of splitting them in separate files is the changing one type will not
  47.  *   require recompiling all the files which includea ODTypes.h. Also, there may be a lot
  48.  *   of OS-specific types. If that's the case, we don't want them all in one file.
  49.  * 
  50.  *  Text
  51.  */
  52. typedef
  53. long  ODITextFormat;
  54.  
  55. /*
  56.  * -- Share exact same alignment between 68k & PowerPC.
  57.  * -- User to add padding to idl as desired for better alignment.
  58.  */
  59. #if powerc
  60. #  pragma options align=mac68k
  61. #endif
  62. typedef
  63. struct ODIText {
  64. ODITextFormat format;
  65. ODByteArray text;
  66. } ODIText;
  67. #if powerc
  68. #  pragma options align=reset
  69. #endif
  70. typedef
  71. struct ODIText ODName;
  72. typedef
  73. ODName ODContainerName;
  74. typedef
  75. ODName ODDocumentName;
  76.  
  77. /*
  78.  *  Imaging
  79.  */
  80. typedef
  81. ODHandle ODIconFamily;
  82.  
  83. /*
  84.  *  Events
  85.  */
  86. typedef
  87. ODUShort ODEventType;
  88. typedef
  89. struct EventRecord ODEventData;
  90. #ifndef ODFrame
  91.     #define ODFrame SOMObject
  92. #endif /* ODFrame */
  93. #ifndef ODFacet
  94.     #define ODFacet SOMObject
  95. #endif /* ODFacet */
  96.  
  97. /*
  98.  * -- Share exact same alignment between 68k & PowerPC.
  99.  * -- User to add padding to idl as desired for better alignment.
  100.  */
  101. #if powerc
  102. #  pragma options align=mac68k
  103. #endif
  104. typedef
  105. struct ODEventInfo {
  106. ODFrame* embeddedFrame;
  107. ODFacet* embeddedFacet;
  108. struct ODPoint where;
  109. ODBoolean propagated;
  110. } ODEventInfo;
  111. #if powerc
  112. #  pragma options align=reset
  113. #endif
  114. typedef
  115. ODULong ODIdleFrequency;
  116. typedef
  117. ODULong ODTime;
  118.  
  119. /*
  120.  *  Menus
  121.  */
  122. typedef
  123. ODSShort ODMenuID;
  124. typedef
  125. ODSShort ODMenuItemID;
  126. typedef
  127. ODSLong ODCommandID;
  128.  
  129. /*
  130.  *  Windows
  131.  */
  132. typedef
  133. ODUShort ODWindowLayer;
  134.  
  135. /*
  136.  *  Name Binding
  137.  */
  138. typedef
  139. ODISOStr ODKind;
  140.  
  141. /*
  142.  *  An opaque type identifying a specific part kind
  143.  */
  144. typedef
  145. ODISOStr ODCategory;
  146.  
  147. /*
  148.  *  An opaque type identifying a specific part category
  149.  */
  150. typedef
  151. ODISOStr ODEditor;
  152.  
  153. /*
  154.  *  An opaque type identifying a specific part editor
  155.  */
  156. typedef
  157. ODISOStr ODContainerSuite;
  158.  
  159. /*
  160.  *  An opaque type identifying a specific container suite
  161.  */
  162. typedef
  163. ODULong ODUpdateID;
  164.  
  165. /*
  166.  *  Content update IDs
  167.  */
  168. typedef
  169. ODULong ODDraftKey;
  170.  
  171. /*
  172.  *  Drag and Drop
  173.  */
  174. typedef
  175. ODBoolean ODDragResult;
  176.  
  177. /*
  178.  *  Link Protocol
  179.  */
  180. typedef
  181. ODULong ODLinkUpdateResult;
  182. typedef
  183. ODULong ODPasteAsMergeSetting;
  184.  
  185. /*
  186.  * -- Share exact same alignment between 68k & PowerPC.
  187.  * -- User to add padding to idl as desired for better alignment.
  188.  */
  189. #if powerc
  190. #  pragma options align=mac68k
  191. #endif
  192. typedef
  193. struct ODLinkInfo {
  194. ODType kind;
  195. ODTime creationTime;
  196. ODTime changeTime;
  197. ODUpdateID change;
  198. ODBoolean autoUpdate;
  199. } ODLinkInfo;
  200.  
  201. /*
  202.  *  Link Dialogs
  203.  */
  204. #if powerc
  205. #  pragma options align=reset
  206. #endif
  207.  
  208. /*
  209.  * -- Share exact same alignment between 68k & PowerPC.
  210.  * -- User to add padding to idl as desired for better alignment.
  211.  */
  212. #if powerc
  213. #  pragma options align=mac68k
  214. #endif
  215. typedef
  216. struct ODPasteAsResult {
  217. ODBoolean pasteLinkSetting;
  218. ODBoolean autoUpdateSetting;
  219. ODBoolean mergeSetting;
  220. ODTypeToken selectedView;
  221. ODType selectedKind;
  222. ODType translateKind;
  223. ODEditor editor;
  224. } ODPasteAsResult;
  225. #if powerc
  226. #  pragma options align=reset
  227. #endif
  228. typedef unsigned long ODLinkInfoAction;
  229. #define kODLinkInfoCancel 1UL
  230. #define kODLinkInfoOk 2UL
  231. #define kODLinkInfoBreakLink 3UL
  232. #define kODLinkInfoUpdateNow 4UL
  233. #define kODLinkInfoFindSource 5UL
  234.  
  235. /*
  236.  * -- Share exact same alignment between 68k & PowerPC.
  237.  * -- User to add padding to idl as desired for better alignment.
  238.  */
  239. #if powerc
  240. #  pragma options align=mac68k
  241. #endif
  242. typedef
  243. struct ODLinkInfoResult {
  244. ODLinkInfoAction action;
  245. ODBoolean autoUpdate;
  246. } ODLinkInfoResult;
  247.  
  248. /*
  249.  * 
  250.  *  Constants
  251.  * 
  252.  */
  253. #if powerc
  254. #  pragma options align=reset
  255. #endif
  256. #define OpenDoc_Global_Types_OpenDoc_Types_Version "1.0."
  257.  
  258. #ifndef SOM_DONT_USE_SHORT_NAMES
  259. #ifndef SOMTGD_OpenDoc_Types_Version
  260.     #ifdef OpenDoc_Types_Version
  261.         #undef OpenDoc_Types_Version
  262.         #define SOMTGD_OpenDoc_Types_Version 1
  263.     #else
  264.         #define OpenDoc_Types_Version OpenDoc_Global_Types_OpenDoc_Types_Version
  265.     #endif /* OpenDoc_Types_Version */
  266. #endif /* SOMTGD_OpenDoc_Types_Version */
  267. #endif /* SOM_DONT_USE_SHORT_NAMES */
  268.  
  269. /*
  270.  * End of user-defined types.
  271.  */
  272. #endif /* SOM_Module_OpenDoc_Global_Types_defined */
  273.